package com.pattern.structure.composite;

/**
 * @author yangguanzan
 * @date 7/3/22
 * @description
 */
public class Leaf implements ILeaf {
    private String name;

    public Leaf(String name) {
        this.name = name;
    }

    @Override
    public void operation() {

        System.out.println(this.name+"Leaf operation");
    }
}
